export const ACCESS_TOKEN = "TOKEN";


export const TABLE_PAGE = {
    page_num:1,
    page_size:1000
}

export const IMG_CIRCLE = "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png";

export const IMG_SQUARE = "https://cube.elemecdn.com/9/c2/f0ee8a3c7c9638a54940382568c9dpng.png";

//物资
export const PARAMS_MATERIAL = [
    {
        type: "input",
        field: "name",
        title: "材料名称",
        value: "",
        props: {placeholder:"请输入材料名称"}
    },
    {
        type: "input",
        field: "unit",
        title: "单位",
        value: "",
        props: {placeholder:"请输入单位"}
    },
    {
        type: "input",
        field: "spec",
        title: "规格型号",
        value: "",
        props: {placeholder:"请输入规格型号"}
    },
    {
        type: "select",
        field: "type1Id",
        title: "一级分类",
        value: "",
        options:[],
        props: {placeholder:"请选择一级分类"},
        emit: ['change'],
        emitPrefix: 'btn-type1',
    },
    {
        type: "select",
        field: "type2Id",
        title: "二级分类",
        value: "",
        options:[],
        props: {placeholder:"请选择二级分类"},
        emit: ['change'],
        emitPrefix: 'btn-type2',
    },
    {
        type: "select",
        field: "type3Id",
        title: "三级分类",
        value: "",
        options:[],
        props: {placeholder:"请选择三级分类"}
    },
    {
      type:'el-button',
      field:'search',
      props:{
          type:'primary',
          icon:"el-icon-search"
      },
      children:['搜索'],
      emit: ['click'],
      emitPrefix: 'btn-search',
    },
    {
      type:'el-button',
      field:'reset',
      props:{
          type:'primary',
          icon:"el-icon-setting"
      },
      children:['重置'],
      emit: ['click'],
      emitPrefix: 'btn-reset',
    },
    {
        type:'el-button',
        field:'submit',
        props:{
            type:'danger',
            icon:"el-icon-help"
        },
        children:['提交'],
        emit: ['click'],
        emitPrefix: 'btn-submit',
      }
  ]


export const LABEL_MATERIAL = [
    { label: "创建时间", prop: "createTime",width:"160",type:'createTime'},
    { label: "", prop: "",width:"40",type:'checkbox'},
    { label: "材料名称", prop: "name",width:"160",type:'normal'},
    { label: "规格型号", prop: "spec",width:"120",type:'normal'},
    { label: "单位", prop: "unit",width:"60",type:'normal' },
    { label: "一级分类", prop:'type1Name',width:"120",type:'normal'},
    { label: "二级分类", prop:'type2Name',width:"120",type:'normal'},
    { label: "三级分类", prop:'type3Name',width:"120",type:'normal'},
    { label: "单件/元", prop: "price",width:"80",type:'normal'},
    { label: "备注", prop:'remarks',width:"200",type:'normal'},
    { label: "创建人", prop: "createUserName",width:"120",type:'normal'}
]

//规格
export const LABEL_MATERIAL_UNIT = [
    { label: "创建时间", prop: "createTime",width:"160",type:'createTime'},
    { label: "单选", prop: "radio",width:"40",type:'radio'},
    { label: "物资名称", prop: "name",width:"160",type:'normal'},
    { label: "规格型号", prop: "spec",width:"100",type:'normal'}
]

//物资
export const PURCHASE_TYPE_DATA = [
    {label:'询价采购',value:"1"},
    {label:'邀请采购',value:"2"},
    {label:'公开采购',value:"3"}
]
//劳务
export const LABOUR_TYPE_DATA = [
    {label:'邀请采购',value:"2"},
    {label:'公开采购',value:"3"}
]

//项目库
export const PARAMS_PROJECT = [
    {
        type: "input",
        field: "name",
        title: "项目名称",
        value: "",
        props: {placeholder:"请输入项目名称"}
    },
    {
        type: "input",
        field: "receiverPhone",
        title: "联系电话",
        value: "",
        props: {placeholder:"请输入联系电话"}
    },
    {
      type:'el-button',
      field:'search',
      props:{
          type:'primary',
          icon:"el-icon-search"
      },
      children:['搜索'],
      emit: ['click'],
      emitPrefix: 'btn-search',
    },
    {
      type:'el-button',
      field:'reset',
      props:{
          type:'primary',
          icon:"el-icon-setting"
      },
      children:['重置'],
      emit: ['click'],
      emitPrefix: 'btn-reset',
    },
    {
        type:'el-button',
        field:'submit',
        props:{
            type:'danger',
            icon:"el-icon-help"
        },
        children:['提交'],
        emit: ['click'],
        emitPrefix: 'btn-submit',
    }
]

export const LABEL_PORJECT = [
    { label: "创建时间", prop: "createTime",width:"150",type:'createTime'},
    { label: "", prop: "",width:"40",type:'radio'},
    { label: "项目名称", prop: "name",width:"180",type:'normal'},
    { label: "收货人", prop: "receiverName",width:"100",type:'normal'},
    { label: "收货电话", prop: "receiverPhone",width:"180",type:'normal' },
    { label: "收货地点", prop: "address",width:"200",type:'normal'},
    { label: "备注", prop:'remarks',width:"200",type:'normal'},
    { label: "创建人", prop: "createUserName",width:"120",type:'normal'},
    { label: "更新时间", prop: "updateTime",width:"150",type:'updateTime'}
]


//供应商
export const PARAMS_SUPPLIER = [
    {
        type: "input",
        field: "name",
        title: "供应商名称",
        value: "",
        props: {placeholder:"请输入供应商名称"}
    },
    {
      type:'el-button',
      field:'search',
      props:{
          type:'primary',
          icon:"el-icon-search"
      },
      children:['搜索'],
      emit: ['click'],
      emitPrefix: 'btn-search',
    },
    {
      type:'el-button',
      field:'reset',
      props:{
          type:'primary',
          icon:"el-icon-setting"
      },
      children:['重置'],
      emit: ['click'],
      emitPrefix: 'btn-reset',
    },
    {
        type:'el-button',
        field:'submit',
        props:{
            type:'danger',
            icon:"el-icon-help"
        },
        children:['提交'],
        emit: ['click'],
        emitPrefix: 'btn-submit',
    }
]

  export const LABEL_SUPPLIER = [
    { label: "创建时间", prop: "createTime",width:'160',type:"createTime" },
    { label: "", prop: "checkbox",width:'40',type:"checkbox" },
    { label: "供应商名称", prop: "name",width:'180',type:"normal"},
    { label: "联系电话", prop:'contactPhone',width:'180',type:"normal"},
    { label: "联系人", prop:'contactPerson',width:'100',type:"normal"},
    { label: "注册资金", prop:'registeredCapital',width:'140',type:"normal"},
    { label: "社会统一代码", prop:'licenseNo',width:'180',type:"normal"},
    { label: "邮编", prop:'postCode',width:'100',type:"normal"},
    { label: "是否绑定账号", prop:'isBind',width:'120',type:"isBind"},
    { label: "企业规模", prop:'scale',width:'100',type:"normal"},
    { label: "所属经济行业", prop:'trade',width:'150',type:"normal"},
    { label: "所在地址", prop:'addresss',width:'200',type:"normal"},
    { label: "经营范围", prop:'businessScope',width:'200',type:"normal"},
    { label: "公司介绍", prop:'introduction',width:'200',type:"normal"},
    { label: "公司资质", prop:'qualification',width:'200',type:"normal"},
    { label: "状态", prop:'statusFlag',width:'150',type:"statusFlag"},
    { label: "创建人", prop: "createUserName",width:'100',type:"normal"},
    { label: "更新时间", prop: "updateTime",width:'160',type:"updateTime" }
  ]



export const OPTION_INLINE = {
    form: { labelWidth: "" ,inline: true,size:"small"},
    resetBtn: false,
    submitBtn: false
  }
  export const OPTION_BLOCK= {
    form: { labelWidth: "" ,size:"small"},
    row:{gutter: 20},
    resetBtn: false,
    submitBtn: false
  }